package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	Img   string  `gorm:"type:varchar(500)"json:"img"`
	Name  string  `gorm:"type:varchar(30)"json:"name"`
	Price float64 `gorm:"type:decimal(10,2)"json:"price"`
	Num   int64   `gorm:"type:int(11)"json:"num"`
}
type Cart struct {
	gorm.Model
	OrderId  int64  `gorm:"type:int(11)"json:"orderId"`
	Quantity int64  `gorm:"type:int(11)"json:"quantity"`
	Selected string `gorm:"type:varchar(30)"json:"selected"`
}
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"json:"username"`
	Password string `gorm:"type:char(11)"json:"password"`
	Tel      string `gorm:"type:char(11)"json:"tel"`
}
